from pypinyin import pinyin, Style

class YunTools:
    def __init__(self):
        # 中华通韵
        pass


class ZiInfo:
    def __init__(self, yun:str=None, sheng:str=None, diao:int=None):
        self.yun: str = None;
        self.sheng: str = None;
        self.diao: int = None;

    def get_yun(self):
        return self.yun;

    def get_sheng(self):
        return self.sheng;

    def get_diao(self):
        return self.diao
    
    def to_string(self):
        return f"{self.sheng}{self.yun}{self.diao}"

class LineInfo:

    def __init__(self, *zi_infos: ZiInfo):
        self.zi_list: list = [zi for zi in zi_infos]
    
    def get_yun(self):
        



class ZiHandler:
    def __init__(self):
        pass


    def to_pinyin(self, s:str)->ZiInfo:
        pass

class CommonZiHandler(ZiHandler):
    def to_pinyin(self, zi:str)->ZiInfo:
        pinyin(s, style=Style.TONE3)
        





